package cn.hanyx.vlog.articleservice.mapper;

import cn.hanyx.vlog.articleservice.entity.Article;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * ArticleMapper
 *
 * @author hanyx
 * @date 2021/11/04
 */
@Mapper
public interface ArticleMapper {

    @Select("select * from article where article_type <= ${value} order by create_time desc")
    public List<Article> list(int level);
}
